using System.Text.RegularExpressions;

namespace Aurora.Redis.Tools;

public class CacheTool
{
    /// <summary>
    /// 规则替换
    /// </summary>
    /// <param name="pattern"></param>
    /// <returns></returns>
    public static string PatternRegexReplace(string pattern)
    {
        var regex = new Regex("\\{.*\\}");
        pattern = regex.Replace(pattern, "*");
        return pattern;
    }
}